import request from '@/utils/request'

// 封装注册方法
export const register = (data) => {
  return request.post('/user/registered', data)
}

// 封装登录方法
export const login = (data) => {
  return request.post('/user/login', data)
}

// 我的收藏方法
export const favorites = () => {
  return request.get('/user/favorites')
}
